package me.zhengjie.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import me.zhengjie.common.vo.PageVo;
import me.zhengjie.common.vo.Result;
import me.zhengjie.common.vo.SearchVo;
import me.zhengjie.entity.BasicHousingEstate;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 *@author
 **/
public interface IBasicHousingEstateService extends IService<BasicHousingEstate> {

	/**
	 * 功能描述：根据主键来获取数据
	 * @param id 主键
	 * @return 返回获取结果
	 */
	public BasicHousingEstate getBasicHousingEstateById(String id);

	/**
	 * 功能描述：实现分页查询
	 * @param searchVo 排序参数
	 * @param pageVo 分页参数
	 * @return 返回获取结果
	 */
	public Result<Object> queryBasicHousingEstateListByPage(BasicHousingEstate basicHousingEstate, SearchVo searchVo, PageVo pageVo);

	/**
	 * 功能描述： 导出
	 * @param basicHousingEstate 查询参数
	 * @param response response参数
	 */
	public void download(BasicHousingEstate basicHousingEstate, HttpServletResponse response) ;

	/**
	 * 功能描述：实现查询所有
	 * @return 返回获取结果
	 */
	public List<BasicHousingEstate> queryAllList(BasicHousingEstate basicHousingEstate);

	/**
	 * 功能描述：Excel导入小区信息数据
	 * @return 返回获取结果
	 */
	Result<Object> importExcel(MultipartFile file) throws Exception;


	/**
	 * 获取楼盘信息
	 * @param query
	 * @return
	 */
	public List<Map<String, Object>> loadAllBySelectFromGrid(JSONObject query);
}
